package com.ninjastries;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.*;

public class OrganizerV1Activity extends Activity {
    
	public static boolean hasRun = false;
	private Button buttonM0;
	private Spinner spinner;
	private ArrayAdapter adapter;
	public Context cxt = this;
	
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        if(hasRun) { //If the activity hasn't been run yet...
        	Intent intent = new Intent(cxt, DefineEntryLayout.class); 
        	cxt.startActivity(intent); //Switch to the title screen
        	hasRun = true; //Notify that the activity has been run
        }
    
        buttonM0 = (Button)findViewById(R.id.buttonM0);
        buttonM0.setText("New");
        
        adapter = ArrayAdapter.createFromResource(cxt, R.array.Lists, android.R.layout.simple_spinner_item);
        spinner = (Spinner)findViewById(R.id.spinnerM0);
        
        spinner.setAdapter(adapter);
    
    
    
    
    }
}